import '@/assets/index.less'
import App from './App.vue'
import { routes } from "./route"
import viteSSR, { ClientOnly } from 'vite-ssr'
import { createHead } from '@vueuse/head'

const options = {
  routes: routes
}

export default viteSSR(App, options, (context) => {
  const { app } = context
  const head = createHead()
  app.use(head)
  app.component(ClientOnly.name, ClientOnly)
  return { head }
})